package com.wish.g3.account.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 结算表
 * </p>
 *
 * @author wish
 * @since 2022-11-25
 */
@TableName("tb_cw_clearing")
public class CwClearing implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键 自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商户ID
     */
    private Long businessId;

    /**
     * 商户名称
     */
    private String businessName;

    /**
     * 对账年月日(yyyymmdd)
     */
    private String checkDay;

    /**
     * 结算的对账批次ID
     */
    private Long checkBatchId;

    /**
     * 结算的对账批次号（yyyymmdd001）
     */
    private String checkBatchNo;

    /**
     * 结算的对账批次明细ID
     */
    private Long checkBatchDetailId;

    /**
     * 交易流水号，支付订单的支付订单号
     */
    private String payOrderNo;

    /**
     * 渠道名称(拉卡拉账单类型) 1:代付（提现），2：快捷，3：微信，4：支付宝
     */
    private Integer billType;

    /**
     * 对账确认时间
     */
    private LocalDateTime checkConfirmDate;

    /**
     * 结算金额（对账的订单金额）
     */
    private BigDecimal amount;

    /**
     * 交易日期（对账明细里面的交易日期，也即渠道支付日期）
     */
    private LocalDateTime tradeDateZf;

    /**
     * 结算确认状态（1：未确认，2：已确认）
     */
    private Integer clearingConfirmState;

    /**
     * 结算确认人
     */
    private Long clearingConfirmUserId;

    /**
     * 结算确认时间
     */
    private LocalDateTime clearingConfirmDate;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 预留字段1
     */
    private BigDecimal reserve1;

    /**
     * 预留字段2
     */
    private Integer reserve2;

    /**
     * 预留字段3
     */
    private String reserve3;

    /**
     * 预留字段4
     */
    private String reserve4;

    /**
     * 预留字段5
     */
    private String reserve5;

    /**
     * 删除标识,0:未删除，1：删除
     */
    private Boolean delFlg;

    /**
     * 创建用户ID
     */
    private Long createUserid;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新用户ID
     */
    private Long updateUserid;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }
    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }
    public String getCheckDay() {
        return checkDay;
    }

    public void setCheckDay(String checkDay) {
        this.checkDay = checkDay;
    }
    public Long getCheckBatchId() {
        return checkBatchId;
    }

    public void setCheckBatchId(Long checkBatchId) {
        this.checkBatchId = checkBatchId;
    }
    public String getCheckBatchNo() {
        return checkBatchNo;
    }

    public void setCheckBatchNo(String checkBatchNo) {
        this.checkBatchNo = checkBatchNo;
    }
    public Long getCheckBatchDetailId() {
        return checkBatchDetailId;
    }

    public void setCheckBatchDetailId(Long checkBatchDetailId) {
        this.checkBatchDetailId = checkBatchDetailId;
    }
    public String getPayOrderNo() {
        return payOrderNo;
    }

    public void setPayOrderNo(String payOrderNo) {
        this.payOrderNo = payOrderNo;
    }
    public Integer getBillType() {
        return billType;
    }

    public void setBillType(Integer billType) {
        this.billType = billType;
    }
    public LocalDateTime getCheckConfirmDate() {
        return checkConfirmDate;
    }

    public void setCheckConfirmDate(LocalDateTime checkConfirmDate) {
        this.checkConfirmDate = checkConfirmDate;
    }
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    public LocalDateTime getTradeDateZf() {
        return tradeDateZf;
    }

    public void setTradeDateZf(LocalDateTime tradeDateZf) {
        this.tradeDateZf = tradeDateZf;
    }
    public Integer getClearingConfirmState() {
        return clearingConfirmState;
    }

    public void setClearingConfirmState(Integer clearingConfirmState) {
        this.clearingConfirmState = clearingConfirmState;
    }
    public Long getClearingConfirmUserId() {
        return clearingConfirmUserId;
    }

    public void setClearingConfirmUserId(Long clearingConfirmUserId) {
        this.clearingConfirmUserId = clearingConfirmUserId;
    }
    public LocalDateTime getClearingConfirmDate() {
        return clearingConfirmDate;
    }

    public void setClearingConfirmDate(LocalDateTime clearingConfirmDate) {
        this.clearingConfirmDate = clearingConfirmDate;
    }
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
    public BigDecimal getReserve1() {
        return reserve1;
    }

    public void setReserve1(BigDecimal reserve1) {
        this.reserve1 = reserve1;
    }
    public Integer getReserve2() {
        return reserve2;
    }

    public void setReserve2(Integer reserve2) {
        this.reserve2 = reserve2;
    }
    public String getReserve3() {
        return reserve3;
    }

    public void setReserve3(String reserve3) {
        this.reserve3 = reserve3;
    }
    public String getReserve4() {
        return reserve4;
    }

    public void setReserve4(String reserve4) {
        this.reserve4 = reserve4;
    }
    public String getReserve5() {
        return reserve5;
    }

    public void setReserve5(String reserve5) {
        this.reserve5 = reserve5;
    }
    public Boolean getDelFlg() {
        return delFlg;
    }

    public void setDelFlg(Boolean delFlg) {
        this.delFlg = delFlg;
    }
    public Long getCreateUserid() {
        return createUserid;
    }

    public void setCreateUserid(Long createUserid) {
        this.createUserid = createUserid;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Long getUpdateUserid() {
        return updateUserid;
    }

    public void setUpdateUserid(Long updateUserid) {
        this.updateUserid = updateUserid;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "TbCwClearing{" +
            "id=" + id +
            ", businessId=" + businessId +
            ", businessName=" + businessName +
            ", checkDay=" + checkDay +
            ", checkBatchId=" + checkBatchId +
            ", checkBatchNo=" + checkBatchNo +
            ", checkBatchDetailId=" + checkBatchDetailId +
            ", payOrderNo=" + payOrderNo +
            ", billType=" + billType +
            ", checkConfirmDate=" + checkConfirmDate +
            ", amount=" + amount +
            ", tradeDateZf=" + tradeDateZf +
            ", clearingConfirmState=" + clearingConfirmState +
            ", clearingConfirmUserId=" + clearingConfirmUserId +
            ", clearingConfirmDate=" + clearingConfirmDate +
            ", remarks=" + remarks +
            ", reserve1=" + reserve1 +
            ", reserve2=" + reserve2 +
            ", reserve3=" + reserve3 +
            ", reserve4=" + reserve4 +
            ", reserve5=" + reserve5 +
            ", delFlg=" + delFlg +
            ", createUserid=" + createUserid +
            ", createTime=" + createTime +
            ", updateUserid=" + updateUserid +
            ", updateTime=" + updateTime +
        "}";
    }
}
